<template>
  <div id="app">
    <router-view class="s"/>
    <van-tabbar v-model="active">
        <van-tabbar-item name="home" icon="home-o" to="/Home">首页</van-tabbar-item>
        <van-tabbar-item name="Attence" icon="friends-o" to="/Attence">考勤</van-tabbar-item>
        <van-tabbar-item name="Hygiene" icon="friends-o" to="/Hygiene">卫生</van-tabbar-item>
        <van-tabbar-item name="Leave" icon="friends-o" to="/Leave">请假</van-tabbar-item>
        <van-tabbar-item name="wd" icon="home-o" to="/wd">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<style>
/* #dbf4e7   #189818*/
.van-tabbar-item--active {
    color: #189818 !important;
    background-color: #dbf4e7 !important;
}
.s{
  margin-bottom: 70px
}
#app .van-tabbar--fixed {
    border-top: 1px solid #e8e2e2;
}
</style>
<script>
export default {
  data() {
    return {
      active:'home',
      // isEdshk:true
    };
  },
  methods:{
    onChange(){
      // alert(this.active);
      this.$toast.clear();

      sessionStorage.setItem("active",this.active)
    }
  },
  mounted(){
    this.active=parseInt(sessionStorage.getItem("active"))
  }
};
</script>
